/* @flow */

export const ATTRIBUTE = {
  BUTTON: ("data-button": "data-button"),
  FUNDING_SOURCE: ("data-funding-source": "data-funding-source"),
  PAYMENT_METHOD_ID: ("data-payment-method-id": "data-payment-method-id"),
  INSTRUMENT_ID: ("data-instrument-id": "data-instrument-id"),
  INSTRUMENT_TYPE: ("data-instrument-type": "data-instrument-type"),
  SECONDARY_INSTRUMENT_TYPE:
    ("data-secondary-instrument-type": "data-secondary-instrument-type"),
  VERSION:
    ("data-paypal-smart-button-version": "data-paypal-smart-button-version"),
  CARD: ("data-card": "data-card"),
  MENU: ("data-menu": "data-menu"),
  OPTIONAL: ("optional": "optional"),
  PAY_NOW: ("data-pay-now": "data-pay-now"),
};

export const DEFAULT = ("default": "default");

export const APP_SWITCH_RETURN_HASH = {
  ONAPPROVE: ("onApprove": "onApprove"),
  ONCANCEL: ("onCancel": "onCancel"),
  ONERROR: ("onError": "onError"),
};
